import {createApp} from 'vue';
import App from './App.vue';
import i18nPlugin, {switchLocale} from './i18n.js'

const app = createApp(App)
switchLocale('zh').then(r => {
        app.use(i18nPlugin, {defaultLocale: 'zh'}) // 标准插件注册
        app.mount('#app');
    }
)
// app.use(i18nPlugin, {defaultLocale: 'zh'}) // 标准插件注册
// app.mount('#app');